Component({

  /**
   * 组件的属性列表
   */
  properties: {
    tabList: {
      type: Array,
      value: [
        { id: 0, name: 'باش بەت', icon: '/common/icon/home.svg', iconActive: '/common/icon/home-active.png' },
        { id: 1, name: 'ئاۋازلىق', icon: '/common/icon/awazlik.svg', iconActive: '/common/icon/awazik-active.png' },
        { id: 2, name: 'كىتابلىرىم', icon: '/common/icon/jiaza.svg', iconActive: '/common/icon/jiaza-active.png' },
        { id: 3, name: 'مىنىڭ', icon: '/common/icon/mine.svg', iconActive: '/common/icon/mine-active.png' },
      ]
    },
    tabActive: {
      type: Number,
      value: 0
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // tab 点击
    onTab(event) {
      let item, index
      item = event.currentTarget.dataset.item
      index = event.currentTarget.dataset.index
      this.triggerEvent("onChangeTab", { item: item, index: index }, {})
    }
  }
})